package com.wicket.okrapp.biz.service.dto.common;

import com.wicket.okrapp.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import java.util.Objects;

/**
 * @desc WorkDaysTwoMonthsDto
 * @使用场景
 */
@Data
public class WorkDaysTwoMonthsDto extends BaseDto implements Serializable {

  /**
   * 周期ID
   */
  @ApiModelProperty("周期ID")
  private String cycleId;

  /**
   * 周期开始时间
   */
  @ApiModelProperty("周期开始时间")
  private Date cycleStartTime;

  /**
   * 周期结束时间
   */
  @ApiModelProperty("周期结束时间")
  private Date cycleEndTime;

  /**
   * 排序
   */
  @ApiModelProperty("排序")
  private Long orderNumber;
@Override
  public boolean equals(Object o) {
      if (this == o) return true;
      if (o == null || getClass() != o.getClass()) return false;
      if (!super.equals(o)) return false;
      WorkDaysTwoMonthsDto that = (WorkDaysTwoMonthsDto) o;
      return  cycleId == that.cycleId&&cycleStartTime == that.cycleStartTime&&cycleEndTime == that.cycleEndTime&&orderNumber == that.orderNumber;
    }
@Override
  public int hashCode() {
      return Objects.hash(super.hashCode(), cycleId,cycleStartTime,cycleEndTime,orderNumber);
    }

}
